import request from '@/utils/request'

// 查询请假说明附件列表
export function listLeaveFile(query) {
  return request({
    url: '/Leave/LeaveFile/list',
    method: 'get',
    params: query
  })
}

// 查询请假说明附件详细
export function getLeaveFile(fileId) {
  return request({
    url: '/Leave/LeaveFile/' + fileId,
    method: 'get'
  })
}

// 新增请假说明附件
export function addLeaveFile(data) {
  return request({
    url: '/Leave/LeaveFile',
    method: 'post',
    data: data
  })
}

// 修改请假说明附件
export function updateLeaveFile(data) {
  return request({
    url: '/Leave/LeaveFile',
    method: 'put',
    data: data
  })
}

// 删除请假说明附件
export function delLeaveFile(fileId) {
  return request({
    url: '/Leave/LeaveFile/' + fileId,
    method: 'delete'
  })
}
